#ifndef _GPS_H
#define _GPS_H
#include "stm32f10x.h"

#define  	GPS_RBUF_SIZE      		UART2_RX_BUF
#define  	GPS_RX_Buff				UART2_RX_Buff
#define  	GPS_RX_STA				UART2_RX_STA
#define  	GPS_RX_FRAME			UART2_RX_FRAME

typedef struct gps_value{

	char transverse;
	char portrait; 
	u8	UTC_Hour;
	u8 	UTC_Minute;
	u8 	UTC_Second;
	u32	Longitude ;
	u32	latitude;
}GPS_VALUE;

void gps_queue_send(void);
extern GPS_VALUE *Gps_Value;


u8 gps_init(void);
u8 gps_run(void);
u8 gps_close(void);

u8 GPS_Get(u8* buff,u16 len);
#endif
